'''
Created on 28/feb/2011

@author: SO000112
'''
import xlrd

import os
print os.getcwd()

book = xlrd.open_workbook("../docs/Trentin_03.xls")
print "The number of worksheets is", book.nsheets
print "Worksheet name(s):", book.sheet_names()
sh = book.sheet_by_index(0)
print sh.name, sh.nrows, sh.ncols
print "Cell D4 is", sh.cell_value(rowx=4, colx=2)
for rx in range(sh.nrows):
    print sh.row(rx)
